
<form action="<?= base_url() . ADMIN_FOLDER ?>/<?= get_segment(2) ?>/edit/<?= $item->id ?>" method="post" class="fill-up" >
    <div class="row-fluid">
        <div class="span12">
            <div  class="box">
                <div class="tab-header icon-cog"> <?=lang('label_edit')?></div>

                <div id='data_contant' class="padded">


                    <div class="row-fluid">
                        <div class="span10" style="margin-left: 6%;">


                            <div class="input">
                                <label for="site">
                                    <?=lang('label_title')?>
                                </label>
                                <?php echo form_error('title', '<div class="form_error">', '</div>'); ?>
                                <input name="title" placeholder="<?=lang('label_title')?>" value="<?= set_value('title', $item->title) ?>" type="text" />
                            </div>




                            <div class="input">
                                <label for="link">
                                    <?=lang('label_link')?>
                                </label>
                                <?php echo form_error('link', '<div class="form_error">', '</div>'); ?>
                                <input name="link" placeholder="<?=lang('label_link')?>" value="<?= set_value('link', $item->link) ?>" type="text" class="input_email" />
                            </div>
                            <div class="input">
                                <label for="image">
                                    <?=lang('label_image')?>
                                </label>
                                <?php echo form_error('file', '<div class="form_error">', '</div>'); ?>
                                <input name="file" placeholder="<?=lang('label_image')?>" value="<?= set_value('file', $item->file) ?>" type="text" class="input_email" />
                                <input type="hidden" value="<?=$item->file?>" name="old_file" />
                            </div>
                            <div class="input">
                                <label for="quantity">
                                    <?=lang('label_select')?> 
                                </label>
                                <?php echo form_error('quantity', '<div class="form_error">', '</div>'); ?>
                                <input name="quantity" placeholder="<?=lang('label_select')?>" value="<?= set_value('quantity', $item->quantity) ?>" type="text" class="input_number span3" />
                            </div>

                            <div class="input">
                                <label for="<?=lang('label_item_number')?>">
                                    <?=lang('label_item_number')?>
                                </label>
                                <?php echo form_error(lang('label_item_number'), '<div class="form_error">', '</div>'); ?>
                                <input name="item_number" placeholder="{<?=lang('label_item_number')?>}" value="<?= set_value('item_number', $item->item_number) ?>" type="text" class="span3" />
                            </div>


                            <div class="input">
                                <label for="price">
                                    <?=lang('label_price')?> 
                                </label>
                                <?php echo form_error('price', '<div class="form_error">', '</div>'); ?>
                                <input name="price" placeholder="<?=lang('label_price')?>" value="<?= set_value('price', $item->price) ?>" type="text" class="span3" />
                            </div>

                            <div class="input">
                                <label for="weight">
                                    <?=lang('label_weight')?> 
                                </label>
                                <?php echo form_error('weight', '<div class="form_error">', '</div>'); ?>
                                <input name="weight" placeholder="<?=lang('label_weight')?>" value="<?= set_value('weight', $item->weight) ?>" type="text" class="span3" />
                            </div>

                            <div class="input">
                                <label for="shiping_cost">
                                    <?=lang('label_shiping_cost')?> 
                                </label>
                                <?php echo form_error('shiping_cost', '<div class="form_error">', '</div>'); ?>
                                <input name="shiping_cost" placeholder="<?=lang('label_shiping_cost')?>" value="<?= set_value('shiping_cost', $item->shiping_cost) ?>" type="text" class="span3" />
                            </div>

                            <div class="input">
                                <label for="size">
                                    <?=lang('label_size')?> 
                                </label>
                                <?php echo form_error('size', '<div class="form_error">', '</div>'); ?>
                                <input name="size" placeholder="<?=lang('label_size')?>" value="<?= set_value('size', $item->size) ?>" type="text" class="span3" />
                            </div>

                            <div class="input">
                                <label for="color">
                                    <?=lang('label_color')?> 
                                </label>
                                <?php echo form_error('color', '<div class="form_error">', '</div>'); ?>
                                <input name="color" placeholder="<?=lang('label_color')?>" value="<?= set_value('color', $item->color) ?>" type="text" class="span3" />
                            </div>



                            <div class="input">
                                <label for="item_type">
                                    <?=lang('label_item_type')?> 
                                </label>
                                <?php echo form_error('item_type', '<div class="form_error">', '</div>'); ?>
                                <?= form_dropdown('item_type', array('1' => 'New', '2' => 'Used', '3' => 'refurbed'), set_value('type', $item->item_type), 'id="select-choice-1"') ?>
                            </div>                           

                            <div class="input" >
                                <input type="checkbox" id="ch1" name="perfum" <? if ($item->perfum == 'YES') { ?> checked="checked" <? } ?>  value="YES" class="normal-check">
                                <label for="ch1"><?=lang('label_perfum')?></label>
                            </div>   


                            <div class="input" >
                                <input type="checkbox" id="ch2" name="battery" <? if ($item->battery == 'YES') { ?> checked="checked" <? } ?>  value="YES" class="normal-check">
                                <label for="ch2"><?=lang('label_battery')?></label>
                            </div>  

                            <div class="input">
                                <label for="details">
                                    <?=lang('label_details')?> 
                                </label>
                                <?php echo form_error('details', '<div class="form_error">', '</div>'); ?>
                                <textarea name="details" class="details" cols="60" rows="6"><?= set_value('details', $item->details) ?></textarea>
                            </div> 
                            <div class="input" style="float: right;display: block;float: none;overflow: hidden;">
                                <label for="status">
                                    <?=lang('label_status')?> 
                                </label>
                                <?php echo form_error('status', '<div class="form_error">', '</div>'); ?>
                                <?= form_dropdown('status', get_statues_list(), $item->statue_id, 'class="droop_tool_box_statues" id="select-choice-10"') ?>
                            </div> 
                        </div>






                    </div>

                    <div class="form-actions form-actionss">

                        <button type="submit" class="button blue icon-pencil">   <?=lang('label_edit')?></button>

                    </div>



                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span12">
            <div class="box">
                <div class="tab-header">
                    <i class="icon-cog"></i><?=lang('label_admin_action')?> </div>

                <div class="padded" id="action_load_mudle">
                    <!-- action contant  -->

                </div>
            </div>
        </div>
    </div>

</form>
